/*
* 各种播放器配置列表
*/

/******/
try {
  var oMedia = new Media(); //创建新的Media对象属性
  var owidth,oheight,oserver;
  oserver = oMedia.server;
  owidth = oMedia.width;
  oheight = oMedia.height;
  oserver = "";
  owidth = 370; //宽
  oheight = 64; //高
}catch(e){}

/**
 */

var MediaPlayer_Audio = function(url) { //Windows Media Player音频播放器(支持Mp3,Wma音频格式)
 oserver = "";
 owidth = 370; //宽
 oheight = 64; //高
 ourl = oserver + url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="MediaAudioPlayer" type="application/x-oleobject" ';
pstr += ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" ';
pstr += ' classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装Windows Media Player,请先安装后重新点击刷新.\')){window.open(\'http://www.microsoft.com/windows/windowsmedia/download/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" >';
pstr += '<param name="url" value="'+ourl+'">';
pstr += '<param name="autoStart" value="1">';
pstr += '<param name="playCount" value="1">';
pstr += '<param name="defaultFrame" value="datawindow">';
pstr += '<param name="volume" value="100">';
pstr += '<embed name="EmbedPlayer" type="application/x-mplayer2" ';
pstr += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" ';
pstr += ' src="'+ourl+'" ';
pstr += ' showcontrols="1" showdisplay="0" showstatusbar="1" ';
pstr += ' showpositioncontrols="1" showtracker="1" ';
pstr += ' showaudiocontrols="1" showgotobar="0" showcaptioning="0" ';
pstr += ' autostart="1" autosize="0" animationatstart="0" autorewind="0" ';
pstr += ' transparentatstart="0" allowscan="0" enablecontextmenu="0" ';
pstr += ' clicktoplay="0" invokeurls="1" defaultframe="datawindow" ';
pstr += ' playcount="0" volume="100" ';
pstr += ' style="left: 0px; top: 0px; width: '+owidth+'px; height: '+oheight+'px;" ';
pstr += ' width="'+owidth+'" height="'+oheight+'">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var MediaPlayer_Audio2 = function(url) { //Windows Media Player音频播放器(支持Mp3,Wma音频格式)
 oserver = "";
 owidth = 370; //宽
 oheight = 64; //高
 ourl = oserver + url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="MediaAudioPlayer" type="application/x-oleobject" ';
pstr += ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" ';
pstr += ' classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装Windows Media Player,请先安装后重新点击刷新.\')){window.open(\'http://www.microsoft.com/windows/windowsmedia/download/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" >';
pstr += '<param name="url" value="'+ourl+'">';
pstr += '<param name="autoStart" value="1">';
pstr += '<param name="playCount" value="1">';
pstr += '<param name="defaultFrame" value="datawindow">';
pstr += '<param name="volume" value="100">';
pstr += '<embed name="EmbedPlayer" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="'+ourl+'" showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="0" showdisplay="0" showstatusbar="1" showgotobar="0" showcaptioning="0" autostart="1" autorewind="0" animationatstart="0" transparentatstart="0" allowchangedisplaysize="0" allowscan="0" enablecontextmenu="0" clicktoplay="0" width="'+owidth+'" height="'+oheight+'"></embed>';
pstr += '</object>';
return pstr;
};

var FlashPlayer_SWF = function(url) { //Flash Player播放器(支持swf格式)
 owidth = 370 //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<OBJECT id="Exobud" name="SwfPlayer" ';
pstr += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" ';
//pstr += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装最新版Adobe Flash Player,请先安装后重新点击刷新.\')){window.open(\'http://get.adobe.com/flashplayer/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" align="middle" >';
pstr += '<param name="movie" value="'+ourl+'">';
pstr += '<param name="quality" value="high">';
pstr += '<param name="scale" value="showall">';
pstr += '<param name="wmode" value="Opaque">';
pstr += '<param name="bgcolor" value="#eef4fd">';
pstr += '<param name="allowfullscreen" value="true">';
pstr += '<param name="allowscriptaccess" value="always">';
pstr += '<embed name="EmbedPlayer" type="application/x-shockwave-flash" ';
pstr += ' pluginspage="http://get.adobe.com/flashplayer/" ';
pstr += ' quality="high" scale="showall" bgcolor="#eef4fd" ';
pstr += ' allowscriptaccess="always" allowfullscreen="false" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" salign="LT" align="middle" ';
pstr += ' src="'+ourl+'" >';
pstr += '</embed>';
pstr += '</OBJECT>';
return pstr;
};

var FlashPlayer_FLV = function(url) { //Flash Player播放器(支持FLV,SWF视频格式)
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<OBJECT id="Exobud" name="FlvPlayer" ';
pstr += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" ';
//pstr += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装最新版Adobe Flash Player,请先安装后重新点击刷新.\')){window.open(\'http://get.adobe.com/flashplayer/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" align="middle" >';
pstr += '<param name="movie" value="'+ cmspath +'statics/swf/jwplayer.swf">';
pstr += '<param name="quality" value="high">';
pstr += '<param name="scale" value="noborder">';
pstr += '<param name="bgcolor" value="#eef4fd">';
pstr += '<param name="allowfullscreen" value="true">';
pstr += '<param name="allowscriptaccess" value="always">';
pstr += '<param name="flashvars" ';
pstr += ' value="file='+ourl+'&autostart=true&repeat=false&backcolor=0xffffff&frontcolor=0x000000&lightcolor=0xffffff&image=">';
pstr += '<embed name="EmbedPlayer" type="application/x-shockwave-flash" ';
pstr += ' pluginspage="http://get.adobe.com/flashplayer/" ';
pstr += ' quality="high" scale="noborder" bgcolor="#FFFFFF" ';
pstr += ' allowscriptaccess="always" allowfullscreen="false" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" salign="LT" align="middle" ';
pstr += ' flashvars="file='+ourl+'&autostart=true&repeat=false&backcolor=0xffffff&frontcolor=0x000000&lightcolor=0xffffff&image=" ';
pstr += ' src="'+ cmspath +'statics/swf/jwplayer.swf" >';
pstr += '</embed>';
pstr += '</OBJECT>';
return pstr;
}

var RealPlayer_Audio = function(url) { //Real Player音频播放器(支持无图像RM,MP3音频格式)
 owidth = '100%'; //宽
 oheight = 64; //高
 ourl = url; //地址
var pstr = "";
pstr += '<OBJECT id="Exobud" name="RealAudioPlayer" alt="aaa" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ';
pstr += ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装Real Player播放器,请先安装后重新点击刷新.\')){window.open(\'http://realplayer.cn.real.com/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" align="middle" >';
pstr += '<param name="_ExtentX" value="16140">';
pstr += '<param name="_ExtentY" value="1588">';
pstr += '<param name="AUTOSTART" value="1">';
pstr += '<param name="SHUFFLE" value="0">';
pstr += '<param name="PREFETCH" value="0">';
pstr += '<param name="NOLABELS" value="0">';
pstr += '<param name="SRC" value="'+ourl+'">';
pstr += '<param name="CONTROLS" value="StatusBar,ControlPanel">';
pstr += '<param name="CONSOLE" value="Clip1">';
pstr += '<param name="playCount" value="1">';
pstr += '<param name="LOOP" value="0">';
pstr += '<param name="NUMLOOP" value="0">';
pstr += '<param name="CENTER" value="0">';
pstr += '<param name="MAINTAINASPECT" value="0">';
pstr += '<param name="BACKGROUNDCOLOR" value="#000000">';
pstr += '<param name="pluginspage" value="http://cn.real.com/">';
pstr += '<embed src="'+ourl+'" name="EmbedPlayer" ';
pstr += ' type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ControlPanel,StatusBar" ';
pstr += ' pluginspage="http://cn.real.com/" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" autostart="true">';
pstr += '</embed>';
pstr += '</OBJECT>';
return pstr;
};

var Video_AVI = function(url) { //播放avi格式的视频
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<EMBED id="Exobud" name="AviPlayer" ';
pstr += ' SRC="'+ourl+'" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" ';
pstr += ' AUTOSTART=TRUE>';
pstr += '</EMBED>';
return pstr;
};

var Video_AVI2 = function(url) { //播放avi格式的视频
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="AviPlayer" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装播放器控件,请先安装后刷新.\')){window.open(\'http://realplayer.cn.real.com/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" border="0" >';
pstr += '<param name="MovieWindowWidth" value="'+owidth+'">';
pstr += '<param name="MovieWindowHeight" value="'+oheight+'">';
pstr += '<param name="FileName" value="'+ourl+'">';
pstr += '<param name="CONTROLS" value="StatusBar,ControlPanel">';
pstr += '<param name="ShowDisplay" value="0">';
pstr += '<param name="ShowControls" value="1">';
pstr += '<param name="AutoStart" value="1">';
pstr += '<param name="AutoRewind" value="0">';
pstr += '<param name="PlayCount" value="0">';
pstr += '<param name="Appearance" value="0">';
pstr += '<param name="BorderStyle" value="0">';
pstr += '<embed name="EmbedPlayer" type="audio/x-pn-realaudio-plugin" ';
pstr += ' pluginspage="http://cn.real.com/" ';
pstr += ' showdisplay="0" showcontrols="1" autostart="1" autorewind="0" border="0" playcount="0" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" moviewindowwidth="'+owidth+'" moviewindowheight="'+oheight+'" ';
pstr += ' filename="" src="'+ourl+'">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var Video_MPEG = function(url) { //播放mpeg格式的视频
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<IMG id="Exobud" name="MpegPlayer" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" border="0" ';
pstr += ' dynsrc="'+ourl+'" ';
pstr += ' start="fileopen">';
return pstr;
};

var Video_MPEG2 = function(url) { //播放mpeg格式的视频
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="MpegPlayer" classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" ';

//pstr += ' onError=\"if(window.confirm(\'您尚未安装播放器控件,请先安装后刷新.\')){window.open(\'http://www.microsoft.com/windows/windowsmedia/download/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" >';
pstr += '<param name="Appearance" value="0">';
pstr += '<param name="AutoStart" value="1">';
pstr += '<param name="Filename" value="'+ourl+'" valuetype="ref">';
pstr += '<param name="AllowChangeDisplayMode" value="-1">';
pstr += '<param name="AllowHideDisplay" value="0">';
pstr += '<param name="AllowHideControls" value="-1">';
pstr += '<param name="AutoRewind" value="-1">';
pstr += '<param name="Balance" value="0">';
pstr += '<param name="CurrentPosition" value="0">';
pstr += '<param name="DisplayBackColor" value="0">';
pstr += '<param name="DisplayForeColor" value="16777215">';
pstr += '<param name="DisplayMode" value="0">';
pstr += '<param name="Enabled" value="-1">';
pstr += '<param name="EnableContextMenu" value="-1">';
pstr += '<param name="EnablePositionControls" value="-1">';
pstr += '<param name="EnableSelectionControls" value="0">';
pstr += '<param name="EnableTracker" value="-1">';
pstr += '<param name="FullScreenMode" value="0">';
pstr += '<param name="MovieWindowSize" value="0">';
pstr += '<param name="PlayCount" value="1">';
pstr += '<param name="Rate" value="1">';
pstr += '<param name="SelectionStart" value="-1">';
pstr += '<param name="SelectionEnd" value="-1">';
pstr += '<param name="ShowControls" value="-1">';
pstr += '<param name="ShowDisplay" value="-1">';
pstr += '<param name="ShowPositionControls" value="0">';
pstr += '<param name="ShowTracker" value="-1">';
pstr += '<param name="Volume" value="-480">';
pstr += '<embed name="EmbedPlayer" type="video/mpeg" ';
pstr += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" ';
pstr += ' showdisplay="0" showcontrols="1" autostart="1" autorewind="0" border="0" playcount="0" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" style="LEFT: 1px; TOP: 483px; WIDTH: '+owidth+'px;  HEIGHT: '+oheight+'px" ';
pstr += ' moviewindowwidth="360" moviewindowheight="330" ';
pstr += ' src="'+ourl+'">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var Video_QuickTime = function(url) { //播放Quicktime格式的视频，包括.mov .amr .3gp等
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="QuickTimePlayer" ';
pstr += ' classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ';
pstr += ' codebase="http://www.apple.com/qtactivex/qtplugin.cab" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装播放器控件,请先安装后刷新.\')){window.open(\'http://www.apple.com/quicktime/download/index.html\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" >';
pstr += '<param name="type" value="video/quicktime">';
pstr += '<param name="src" value="'+ourl+'">';
pstr += '<param name="controller" value="true">';
pstr += '<param name="autoplay" value="true">';
pstr += '<param name="target" value="myself">';
pstr += '<param name="bgcolor" value="black">';
pstr += '<param name="pluginspage" value="http://www.apple.com/quicktime/download/index.html">';
pstr += '<embed name="EmbedPlayer" src="'+ourl+'" ';
pstr += ' type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/index.html" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" ';
pstr += ' controller="true" align="middle" bgcolor="black" target="myself" >';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var Video_3GP = function(url) { //支持播放3GP,RM格式的视频
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="Player3GP" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装播放器控件,请先安装后重新点击刷新.\')){window.open(\'http://realplayer.cn.real.com/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+(oheight-60)+'" >';
pstr += '<param name="_ExtentX" value="11906">';
pstr += '<param name="_ExtentY" value="8996">';
pstr += '<param name="AUTOSTART" value="1">';
pstr += '<param name="SHUFFLE" value="0">';
pstr += '<param name="PREFETCH" value="0">';
pstr += '<param name="NOLABELS" value="0">';
pstr += '<param name="SRC" value="'+ourl+'">';
pstr += '<param name="CONTROLS" value="ImageWindow">';
pstr += '<param name="CONSOLE" value="Clip1">';
pstr += '<param name="LOOP" value="0">';
pstr += '<param name="NUMLOOP" value="0">';
pstr += '<param name="CENTER" value="0">';
pstr += '<param name="MAINTAINASPECT" value="0">';
pstr += '<param name="BACKGROUNDCOLOR" value="#000000">';
pstr += '<embed name="EmbedPlayer" src="'+ourl+'" type="audio/x-pn-realaudio-plugin" ';
pstr += ' console="Clip1" controls="ImageWindow" ';
pstr += ' width="'+owidth+'" height="'+(oheight-60)+'" autostart="true">';
pstr += '</embed>';
pstr += '</object>';
pstr += '<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width='+owidth+' height=60>';
pstr += '<param name="_ExtentX" value="11906">';
pstr += '<param name="_ExtentY" value="1588">';
pstr += '<param name="AUTOSTART" value="1">';
pstr += '<param name="SHUFFLE" value="0">';
pstr += '<param name="PREFETCH" value="0">';
pstr += '<param name="NOLABELS" value="0">';
pstr += '<param name="CONTROLS" value="ControlPanel,StatusBar">';
pstr += '<param name="CONSOLE" value="Clip1">';
pstr += '<param name="LOOP" value="0">';
pstr += '<param name="NUMLOOP" value="0">';
pstr += '<param name="CENTER" value="0">';
pstr += '<param name="MAINTAINASPECT" value="0">';
pstr += '<param name="BACKGROUNDCOLOR" value="#000000">';
pstr += '<embed type="audio/x-pn-realaudio-plugin"';
pstr += ' console="Clip1" controls="ControlPanel,StatusBar" ';
pstr += ' width="'+owidth+'" height="60" autostart="true">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var Video_ASF = function(url) { //支持播放asf格式的视频
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="PlayerASF" type="application/x-oleobject" ';
pstr += ' classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ';
pstr += ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7.0" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装Windows Media Player,请先安装后重新点击刷新.\')){window.open(\'http://www.microsoft.com/windows/windowsmedia/download/\');}else{self.location.href=\'#\'}\" ';
//pstr += ' VIEWASTEXT standby="Loading Microsoft Windows Media Player components..." ';
pstr += ' width="'+owidth+'" height="'+oheight+'" style="WIDTH:'+owidth+'px; HEIGHT:'+oheight+'px" border="0">';
pstr += '<param name="AudioStream" value="-1">';
pstr += '<param name="AutoSize" value="0">';
pstr += '<param name="AutoStart" value="-1">';
pstr += '<param name="AnimationAtStart" value="0">';
pstr += '<param name="AllowScan" value="-1">';
pstr += '<param name="AllowChangeDisplaySize" value="-1">';
pstr += '<param name="AutoRewind" value="0">';
pstr += '<param name="Balance" value="0">';
pstr += '<param name="BaseURL" value="">';
pstr += '<param name="BufferingTime" value="5">';
pstr += '<param name="CaptioningID" value="">';
pstr += '<param name="ClickToPlay" value="-1">';
pstr += '<param name="CursorType" value="0">';
pstr += '<param name="CurrentPosition" value="-1">';
pstr += '<param name="CurrentMarker" value="0">';
pstr += '<param name="DefaultFrame" value="">';
pstr += '<param name="DisplayBackColor" value="0">';
pstr += '<param name="DisplayForeColor" value="16777215">';
pstr += '<param name="DisplayMode" value="0">';
pstr += '<param name="DisplaySize" value="4">';
pstr += '<param name="Enabled" value="-1">';
pstr += '<param name="EnableContextMenu" value="-1">';
pstr += '<param name="EnablePositionControls" value="-1">';
pstr += '<param name="EnableFullScreenControls" value="0">';
pstr += '<param name="EnableTracker" value="-1">';
pstr += '<param name="Filename" value="'+ourl+'">';
pstr += '<param name="InvokeURLs" value="-1">';
pstr += '<param name="Language" value="-1">';
pstr += '<param name="Mute" value="0">';
pstr += '<param name="PlayCount" value="1">';
pstr += '<param name="PreviewMode" value="0">';
pstr += '<param name="Rate" value="1">';
pstr += '<param name="SAMILang" value="">';
pstr += '<param name="SAMIStyle" value="">';
pstr += '<param name="SAMIFileName" value="">';
pstr += '<param name="SelectionStart" value="-1">';
pstr += '<param name="SelectionEnd" value="-1">';
pstr += '<param name="SendOpenStateChangeEvents" value="-1">';
pstr += '<param name="SendWarningEvents" value="-1">';
pstr += '<param name="SendErrorEvents" value="-1">';
pstr += '<param name="SendKeyboardEvents" value="0">';
pstr += '<param name="SendMouseClickEvents" value="0">';
pstr += '<param name="SendMouseMoveEvents" value="0">';
pstr += '<param name="SendPlayStateChangeEvents" value="-1">';
pstr += '<param name="ShowCaptioning" value="0">';
pstr += '<param name="ShowControls" value="-1">';
pstr += '<param name="ShowAudioControls" value="-1">';
pstr += '<param name="ShowDisplay" value="0">';
pstr += '<param name="ShowGotoBar" value="0">';
pstr += '<param name="ShowPositionControls" value="0">';
pstr += '<param name="ShowStatusBar" value="-1">';
pstr += '<param name="ShowTracker" value="0">';
pstr += '<param name="TransparentAtStart" value="0">';
pstr += '<param name="VideoBorderWidth" value="0">';
pstr += '<param name="VideoBorderColor" value="0">';
pstr += '<param name="VideoBorder3D" value="0">';
pstr += '<param name="Volume" value="-600">';
pstr += '<param name="WindowlessVideo" value="0">';
pstr += '<embed name="EmbedPlayer" type="application/x-mplayer2" '; //type="video/x-ms-asf"
pstr += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" ';
pstr += ' showcontrols="1" showpositioncontrols="0" showaudiocontrols="1" showtracker="0" showdisplay="0" showstatusbar="1" showgotobar="0" showcaptioning="0" ';
pstr += ' autostart="1" autorewind="0" animationatstart="0" transparentatstart="0" allowchangedisplaysize="0" allowscan="0" enablecontextmenu="0" clicktoplay="0" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" style="WIDTH:'+owidth+'px; HEIGHT:'+oheight+'px"> ';
//pstr += ' moviewindowwidth="'+(owidth-10)+'" moviewindowheight="'+(oheight-20)+'" ';
pstr += ' src="'+ourl+'">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var Video_RM = function(url) { //支持播放有图像rm,ram,rmvb格式的视频
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="RMVideoPlayer" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ';

//pstr += ' onError=\"if(window.confirm(\'您尚未安装Real Player播放器,请先安装后重新点击刷新.\')){window.open(\'http://realplayer.cn.real.com/\');}else{self.location.href=\'#\'}\" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" >';
pstr += '<param name="_ExtentX" value="18415">';
pstr += '<param name="_ExtentY" value="9802">';
pstr += '<param name="AUTOSTART" value="1">';
pstr += '<param name="SHUFFLE" value="0">';
pstr += '<param name="PREFETCH" value="0">';
pstr += '<param name="NOLABELS" value="-1">';
pstr += '<param name="SRC" value="'+ourl+'";>';
pstr += '<param name="CONTROLS" value="Imagewindow">';
pstr += '<param name="CONSOLE" value="clip1">';
pstr += '<param name="LOOP" value="0">';
pstr += '<param name="NUMLOOP" value="0">';
pstr += '<param name="CENTER" value="0">';
pstr += '<param name="MAINTAINASPECT" value="0">';
pstr += '<param name="BACKGROUNDCOLOR" value="#000000">';
pstr += '<embed name="EmbedPlayer" type="audio/x-pn-realaudio-plugin" ';
pstr += ' CONSOLE="Clip1" CONTROLS="ImageWindow" ';
pstr += ' SRC="'+ourl+'" ';
pstr += ' WIDTH="'+owidth+'" HEIGHT="'+oheight+'" AUTOSTART="true">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var MediaPlayer_Video_New = function(url) { //Windows Media Player视频播放器(支持Wmv视频格式) (新式播放器 参数全)
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="MediaVideoPlayer" classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6"';
pstr += ' align="middle" hspace="5" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装Windows Media Player,请先安装后重新点击刷新.\')){window.open(\'http://www.microsoft.com/windows/windowsmedia/download/\');}else{self.location.href=\'#\'}\" ';
pstr += ' style="WIDTH:'+owidth+'px; HEIGHT:'+oheight+'px;" width="'+owidth+'" height="'+oheight+'" >';
pstr += '<!--是否自动播放-->';
pstr += '<param name="autostart" value="1">';
pstr += '<!--调整左右声道平衡-->';
pstr += '<param name="balance" value="0">';
pstr += '<!--播放器是否可人为控制-->';
pstr += '<param name="enabled" value="1">';
pstr += '<!--是否启用上下文菜单-->';
pstr += '<param name="enablecontextmenu" value="1">';
pstr += '<!--播放次数控制,为整数-->';
pstr += '<param name="playcount" value="1">';
pstr += '<!--播放速率控制,1为正常,允许小数,1.0-2.0-->';
pstr += '<param name="rate" value="1">';
pstr += '<!--控件设置:当前位置-->';
pstr += '<param name="currentposition" value="0">';
pstr += '<!--控件设置:当前标记-->';
pstr += '<param name="currentmarker" value="0">';
pstr += '<!--显示默认框架-->';
pstr += '<param name="defaultframe" value="">';
pstr += '<!--脚本命令设置:是否调用url-->';
pstr += '<param name="invokeurls" value="0">';
pstr += '<!--脚本命令设置:被调用的url-->';
pstr += '<param name="baseurl" value="">';
pstr += '<!--是否按比例伸展-->';
pstr += '<param name="stretchtofit" value="0">';
pstr += '<!--默认声音大小0%-100%,50则为50%-->';
pstr += '<param name="volume" value="100">';
pstr += '<!--是否静音-->';
pstr += '<param name="mute" value="0">';
pstr += '<!--播放器显示模式:full显示全部;mini最简化;none不显示播放控制,只显示视频窗口;invisible全部不显示-->';
pstr += '<param name="uimode" value="full">';
pstr += '<!--如果是0能允许全屏,否则只能在窗口中查看-->';
pstr += '<param name="WindowlessVideo" value="0">';
pstr += '<!--开始播放是否自动全屏-->';
pstr += '<param name="fullscreen" value="0">';
pstr += '<!--是否启用错误提示报告-->';
pstr += '<param name="enableerrordialogs" value="-1">';
pstr += '<!--播放的文件地址-->';
pstr += '<param name="url" value="'+ourl+'">';
pstr += '<!--sami样式-->';
pstr += '<param name="samistyle" value="">';
pstr += '<!--sami语言-->';
pstr += '<param name="samilang" value="">';
pstr += '<!--字幕id-->';
pstr += '<param name="samifilename" value="">';
pstr += '<embed name="EmbedPlayer" type="video/wmv" ';
pstr += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" ';
pstr += ' showdisplay="0" showcontrols="1" autostart="1" autorewind="0" border="0" playcount="0" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" style="LEFT: 1px; TOP: 483px; WIDTH: '+owidth+'px;  HEIGHT: '+oheight+'px" ';
pstr += ' moviewindowwidth="'+(owidth-10)+'" moviewindowheight="'+(oheight-20)+'" ';
pstr += ' filename="'+ourl+'" src="'+ourl+'">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var MediaPlayer_Video_New2 = function(url) { //Windows Media Player视频播放器(支持Wmv视频格式) (新式播放器 参数简化)
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="MediaVideoPlayer" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" ';
pstr += ' align="middle" hspace="5" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装Windows Media Player,请先安装后重新点击刷新.\')){window.open(\'http://www.microsoft.com/windows/windowsmedia/download/\');}else{self.location.href=\'#\'}\" ';
pstr += ' style="WIDTH:'+owidth+'px; HEIGHT:'+oheight+'px;" width="'+owidth+'" height="'+oheight+'" >';
pstr += '<param name="URL" value="'+ourl+'">';
pstr += '<param name="rate" value="1">';
pstr += '<param name="balance" value="0">';
pstr += '<param name="currentPosition" value="0">';
pstr += '<param name="defaultFrame" value>';
pstr += '<param name="playCount" value="1">';
pstr += '<param name="autoStart" value="1">';
pstr += '<param name="currentMarker" value="0">';
pstr += '<param name="invokeURLs" value="1">';
pstr += '<param name="baseURL" value>';
pstr += '<param name="volume" value="100">';
pstr += '<param name="mute" value="0">';
pstr += '<param name="uiMode" value="full">';
pstr += '<param name="stretchToFit" value="0">';
pstr += '<param name="windowlessVideo" value="0">';
pstr += '<param name="enabled" value="1">';
pstr += '<param name="enableContextMenu" value="1">';
pstr += '<param name="fullScreen" value="0">';
pstr += '<param name="SAMIStyle" value="">';
pstr += '<param name="SAMILang" value="">';
pstr += '<param name="SAMIFilename" value>';
pstr += '<param name="captioningID" value>';
pstr += '<param name="enableErrorDialogs" value="0">';
pstr += '<param name="_cx" value="7779">';
pstr += '<param name="_cy" value="1693">';
pstr += '<embed name="EmbedPlayer" type="video/wmv" ';
pstr += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" ';
pstr += ' showdisplay="0" showcontrols="1" autostart="1" autorewind="0" border="0" playcount="0" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" style="LEFT: 1px; TOP: 483px; WIDTH: '+owidth+'px;  HEIGHT: '+oheight+'px" ';
pstr += ' moviewindowwidth="'+(owidth-10)+'" moviewindowheight="'+(owidth-20)+'" ';
pstr += ' filename="'+ourl+'" src="'+ourl+'">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var MediaPlayer_Video_Old = function(url) { //Windows Media Player视频播放器(支持wmv,asf视频格式) (老式播放器 参数全)
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="MediaVideoPlayer" type="application/x-oleobject" ';
pstr += ' classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ';
pstr += ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" ';
pstr += ' VIEWASTEXT standby="Loading Microsoft Windows Media Player components..." ';
pstr += ' align="right" hspace="5" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装Windows Media Player,请先安装后重新点击刷新.\')){window.open(\'http://www.microsoft.com/windows/windowsmedia/download/\');}else{self.location.href=\'#\'}\" ';
pstr += ' style="WIDTH:'+owidth+'px; HEIGHT:'+oheight+'px; LEFT:0px; TOP:0px;" width="'+owidth+'" height="'+oheight+'" >';
pstr += '<param name="AudioStream" value="-1">';
pstr += '<param name="AutoSize" value="0">';
pstr += '<param name="AutoStart" value="1">';
pstr += '<param name="AnimationAtStart" value="-1">';
pstr += '<param name="AllowScan" value="-1">';
pstr += '<param name="AllowChangeDisplaySize" value="-1">';
pstr += '<param name="AutoRewind" value="-1">';
pstr += '<param name="Balance" value="0">';
pstr += '<param name="BaseURL" value="">';
pstr += '<param name="BufferingTime" value="5">';
pstr += '<param name="CaptioningID" value="">';
pstr += '<param name="ClickToPlay" value="-1">';
pstr += '<param name="CursorType" value="-1">';
pstr += '<param name="CurrentPosition" value="-1">';
pstr += '<param name="CurrentMarker" value="0">';
pstr += '<param name="DefaultFrame" value="">';
pstr += '<param name="DisplayBackColor" value="0">';
pstr += '<param name="DisplayForeColor" value="16777215">';
pstr += '<param name="DisplayMode" value="0">';
pstr += '<param name="DisplaySize" value="2">';
pstr += '<param name="Enabled" value="-1">';
pstr += '<param name="EnableContextMenu" value="-1">';
pstr += '<param name="EnablePositionControls" value="-1">';
pstr += '<param name="EnableFullScreenControls" value="0">';
pstr += '<param name="EnableTracker" value="-1">';
pstr += '<param name="Filename" value="'+ourl+'">';
pstr += '<param name="InvokeURLs" value="-1">';
pstr += '<param name="Language" value="-1">';
pstr += '<param name="Mute" value="0">';
pstr += '<param name="PlayCount" value="1">';
pstr += '<param name="PreviewMode" value="0">';
pstr += '<param name="Rate" value="1">';
pstr += '<param name="SAMILang" value="">';
pstr += '<param name="SAMIStyle" value="">';
pstr += '<param name="SAMIFileName" value="">';
pstr += '<param name="SelectionStart" value="-1">';
pstr += '<param name="SelectionEnd" value="-1">';
pstr += '<param name="SendOpenStateChangeEvents" value="-1">';
pstr += '<param name="SendWarningEvents" value="-1">';
pstr += '<param name="SendErrorEvents" value="-1">';
pstr += '<param name="SendKeyboardEvents" value="0">';
pstr += '<param name="SendMouseClickEvents" value="-1">';
pstr += '<param name="SendMouseMoveEvents" value="0">';
pstr += '<param name="SendPlayStateChangeEvents" value="-1">';
pstr += '<param name="ShowCaptioning" value="0">';
pstr += '<param name="ShowControls" value="-1">';
pstr += '<param name="ShowAudioControls" value="1">';
pstr += '<param name="ShowDisplay" value="0">';
pstr += '<param name="ShowGotoBar" value="0">';
pstr += '<param name="ShowPositionControls" value="0">';
pstr += '<param name="ShowStatusBar" value="1">';
pstr += '<param name="ShowTracker" value="1">';
pstr += '<param name="TransparentAtStart" value="0">';
pstr += '<param name="VideoBorderWidth" value="0">';
pstr += '<param name="VideoBorderColor" value="0">';
pstr += '<param name="VideoBorder3D" value="0">';
pstr += '<param name="Volume" value="0">';
pstr += '<param name="WindowlessVideo" value="0">';
pstr += '<embed name="EmbedPlayer" type="video/wmv" ';
pstr += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" ';
pstr += ' showdisplay="0" showcontrols="1" autostart="1" autorewind="0" border="0" playcount="0" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" style="LEFT: 1px; TOP: 483px; WIDTH: '+owidth+'px;  HEIGHT: '+oheight+'px" ';
pstr += ' moviewindowwidth="360" moviewindowheight="330" ';
pstr += ' filename="'+ourl+'" src="'+ourl+'">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var MediaPlayer_Video_Old2 = function(url) { //Windows Media Player视频播放器(支持Wmv视频格式) (老式播放器 参数简化)
 owidth = 370; //宽
 oheight = 350; //高
 ourl = url; //地址
var pstr = "";
pstr += '<object id="Exobud" name="MediaVideoPlayer" type="application/x-oleobject" ';
pstr += ' classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ';
pstr += ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" ';
pstr += ' VIEWASTEXT standby="Loading Microsoft Windows Media Player components..." ';
pstr += ' align="right" hspace="5" ';
//pstr += ' onError=\"if(window.confirm(\'您尚未安装Windows Media Player,请先安装后重新点击刷新.\')){window.open(\'http://www.microsoft.com/windows/windowsmedia/download/\');}else{self.location.href=\'#\'}\" ';
pstr += ' style="WIDTH:'+owidth+'px; HEIGHT:'+oheight+'px; LEFT:0px; TOP:0px;" width="'+owidth+'" height="'+oheight+'" >';
pstr += '<param name="AutoRewind" value="1">';
pstr += '<param name="FileName" value="'+ourl+'">';
pstr += '<param name="ShowControls" value="1">';
pstr += '<param name="ShowPositionControls" value="0">';
pstr += '<param name="ShowAudioControls" value="1">';
pstr += '<param name="ShowTracker" value="1">';
pstr += '<param name="ShowDisplay" value="0">';
pstr += '<param name="ShowStatusBar" value="1">';
pstr += '<param name="ShowGotoBar" value="0">';
pstr += '<param name="ShowCaptioning" value="0">';
pstr += '<param name="AutoStart" value="1">';
pstr += '<param name="playCount" value="1">';
pstr += '<param name="Volume" value="0">';
pstr += '<param name="AnimationAtStart" value="0">';
pstr += '<param name="TransparentAtStart" value="0">';
pstr += '<param name="AllowChangeDisplaySize" value="0">';
pstr += '<param name="AllowScan" value="0">';
pstr += '<param name="EnableContextMenu" value="1">';
pstr += '<param name="ClickToPlay" value="1">';
pstr += '<param name="WindowLessVideo" value="0">';
pstr += '<embed name="EmbedPlayer" type="video/wmv" ';
pstr += ' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" ';
pstr += ' showdisplay="0" showcontrols="1" autostart="1" autorewind="0" border="0" playcount="0" ';
pstr += ' width="'+owidth+'" height="'+oheight+'" style="LEFT: 1px; TOP: 483px; WIDTH: '+owidth+'px;  HEIGHT: '+oheight+'px" ';
pstr += ' moviewindowwidth="360" moviewindowheight="330" ';
pstr += ' filename="'+ourl+'" src="'+ourl+'">';
pstr += '</embed>';
pstr += '</object>';
return pstr;
};

var NoPlayer_HTML = function(url) { //出错或不支持播放此格式 （其中包括文本文档格式:html,htm,asp,php,jsp,aspx等）
var pstr = "";
pstr += '出错：未知媒体“'+url+'”或不支持此格式的文件！';
return pstr;
};


